package com.shuai.user.domain.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * @TableName user_session
 */
@TableName(value = "user_session")
@Data
public class UserSession implements Serializable {
    /**
     * 当前会话的id
     */
    @TableId(value = "session_id", type = IdType.ASSIGN_ID)
    private Long sessionId;

    /**
     * 当前会话所属的用户的id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 当前会话的名字
     */
    @TableField(value = "session_name")
    private String sessionName;

    /**
     *
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     *
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 聊天的类型，区分：普通聊天0、智能分析1、智能阅读2
     */
    @TableField(value = "type")
    private Integer type;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}